const joi = require('joi')

const name = joi.string().min(1).max(10).required()
const email = joi.string().email().required()
const password = joi.string().pattern(/^[\S]{6,12}$/).required()

exports.users_register_schema = {
    body: {
        name,
        email,
        password
    }
}

exports.users_login_schema = {
    body: {
        email,
        password
    }
}